-- GENERATED SPELL FOR [Cave Creeper] --


function spell0_8933(pUnit, Event) --@Creeper Venom,Self--
pUnit:FullCastSpellOnTarget(14532,pUnit)
pUnit:RegisterEvent('Sorts_8933', 2000, 1)
end

function spell1_8933(pUnit, Event) --@Web,n/a--
pUnit:FullCastSpellOnTarget(745,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8933', 5291, 1)
end

function Sorts_8933(pUnit, Event)
local choix_sorts_8933 = math.random(0, 1)
if choix_sorts_8933 == 0 then
pUnit:RegisterEvent('spell0_8933', 1, 1)
end
if choix_sorts_8933 == 1 then
pUnit:RegisterEvent('spell1_8933', 1, 1)
end
end

function mob8933_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8933', math.random(1500, 3000), 1)
end

function mob8933_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8933_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8933_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8933, 1, 'mob8933_Action')
RegisterUnitEvent(8933, 2, 'mob8933_Leave')
RegisterUnitEvent(8933, 3, 'mob8933_Kill')
RegisterUnitEvent(8933, 4, 'mob8933_Die')
